package com.example.user.service;

import com.example.common.Ov.TransCodeOv;
import com.example.common.Ov.UserOv;
import com.example.common.entity.Rsp;
import com.example.common.pojo.TransCode;
import com.example.user.mapper.TransCodeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TransCodeServiceImpl implements TransCodeService{

    @Autowired
    TransCodeMapper transCodeMapper;


    @Override
    public Rsp getTransCode(UserOv userOv) {
        TransCode transCode = new TransCode();
        transCode.setUserId(userOv.getId());
        List<TransCodeOv> transCodeOvList = transCodeMapper.getTransCode(transCode);
        System.out.println(transCodeOvList);
        return new Rsp(0,transCodeOvList,"获取成功");
    }
}
